
$logFile = [String]::Format('{0}\{1}', $env:BTAD_InstallDir, 'Deployment\Sixeyed.CacheAdapter.Uninstall.ps1.log')
[IO.File]::Delete($logFile)
[IO.File]::AppendAllText($logFile, [String]::Format('uninstallation started: {0}{1}', [DateTime]::Now, [Environment]::NewLine))

[IO.File]::AppendAllText($logFile, 'Deleting registry keys & values')
[IO.File]::AppendAllText($logFile, [Environment]::NewLine)

New-PSDrive -Name CLSID -PSProvider Registry -Root HKEY_CLASSES_ROOT\CLSID
remove-item -Path 'CLSID:\{416890a7-76e8-4d4d-932d-fca1c4dcce5d}' -recurse -force

[IO.File]::AppendAllText($logFile, [String]::Format('Uninstallation completed: {0}', [DateTime]::Now))